package com.czw.ddm.receiver

import android.content.Context
import cn.jpush.android.api.JPushInterface
import cn.jpush.android.service.JPushMessageReceiver
import com.mtzqc.common.app.App
import com.mtzqc.common.manager.LogManager
import com.mtzqc.common.utils.ThreadUtil

class DdmPushReceiver: JPushMessageReceiver() {
    override fun onRegister(p0: Context?, p1: String?) {
        super.onRegister(p0, p1)
    }

    override fun onConnected(p0: Context?, p1: Boolean) {
        super.onConnected(p0, p1)
       // App.logger.i("xkdjjdd"+p1)
        ThreadUtil.runMainDelayed(5000){
          LogManager.d("InitHelper:  register "+JPushInterface.getRegistrationID(App.app()))
        }
    }
}